package com.lvt.design.pattern.action.observer;

/**
 * desc：class
 *
 * @author LT
 * @date 2022/12/4
 */
public class Demo {
    public static void main(String[] args) {
        Subject subject = new ConcreteSubject();
        subject.registerObserver(new ConcreteObserverOne());
        subject.registerObserver(new ConcreteObserverTwo());
        subject.notifyObservers(new Message());
    }
}
